package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 贷款对象 loans
 * 
 * @author ruoyi
 * @date 2021-09-23
 */
public class Loans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long loaId;

    /**贷款编号**/
    @Excel(name = "贷款编号")
    private String loaNo;

    /** 企业编号 */
    @Excel(name = "企业编号")
    private String loaComNo;

    /** 银行id */
    @Excel(name = "银行id")
    private Long loaBankId;

    /** 材料ID */
    @Excel(name = "材料ID")
    private Long loaLisId;

    /** 贷款用途 */
    @Excel(name = "贷款用途")
    private String loaUse;

    /** 贷款积分 */
    @Excel(name = "贷款积分")
    private String loaIntegral;

    /** 贷款利率 */
    @Excel(name = "贷款利率")
    private String loaRate;

    /** 贷款状态 */
    @Excel(name = "贷款状态")
    private String loaState;

    /** 贷款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "贷款时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date loaTime;

    /** 贷款金额 */
    @Excel(name = "贷款金额")
    private Long loaMoney;

    /** 还款时间 */
    @Excel(name = "还款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loaEndTime;

    /** 删除标识 0 正常 2 删除 */
    private String loaDel;

    private Company company;

    private Bank bank;

    public void setLoaId(Long loaId) 
    {
        this.loaId = loaId;
    }

    public Long getLoaId() 
    {
        return loaId;
    }
    public void setLoaComNo(String loaComNo) 
    {
        this.loaComNo = loaComNo;
    }

    public String getLoaComNo() 
    {
        return loaComNo;
    }
    public void setLoaBankId(Long loaBankId) 
    {
        this.loaBankId = loaBankId;
    }

    public Long getLoaBankId() 
    {
        return loaBankId;
    }
    public void setLoaLisId(Long loaLisId) 
    {
        this.loaLisId = loaLisId;
    }

    public Long getLoaLisId() 
    {
        return loaLisId;
    }
    public void setLoaUse(String loaUse) 
    {
        this.loaUse = loaUse;
    }

    public String getLoaUse() 
    {
        return loaUse;
    }
    public void setLoaIntegral(String loaIntegral) 
    {
        this.loaIntegral = loaIntegral;
    }

    public String getLoaIntegral() 
    {
        return loaIntegral;
    }
    public void setLoaRate(String loaRate) 
    {
        this.loaRate = loaRate;
    }

    public String getLoaRate() 
    {
        return loaRate;
    }
    public void setLoaState(String loaState) 
    {
        this.loaState = loaState;
    }

    public String getLoaState() 
    {
        return loaState;
    }
    public void setLoaTime(Date loaTime) 
    {
        this.loaTime = loaTime;
    }

    public Date getLoaTime() 
    {
        return loaTime;
    }
    public void setLoaMoney(Long loaMoney) 
    {
        this.loaMoney = loaMoney;
    }

    public Long getLoaMoney() 
    {
        return loaMoney;
    }
    public void setLoaDel(String loaDel) 
    {
        this.loaDel = loaDel;
    }

    public String getLoaDel() 
    {
        return loaDel;
    }

    public String getLoaNo() {
        return loaNo;
    }

    public void setLoaNo(String loaNo) {
        this.loaNo = loaNo;
    }

    public Date getLoaEndTime() {
        return loaEndTime;
    }

    public void setLoaEndTime(Date loaEndTime) {
        this.loaEndTime = loaEndTime;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Bank getBank() {
        return bank;
    }

    public void setBank(Bank bank) {
        this.bank = bank;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("loaId", getLoaId())
            .append("loaNo", getLoaNo())
            .append("loaComNo", getLoaComNo())
            .append("loaBankId", getLoaBankId())
            .append("loaLisId", getLoaLisId())
            .append("loaUse", getLoaUse())
            .append("loaIntegral", getLoaIntegral())
            .append("loaRate", getLoaRate())
            .append("loaState", getLoaState())
            .append("loaTime", getLoaTime())
            .append("loaMoney", getLoaMoney())
            .append("loaEndTime", getLoaEndTime())
            .append("loaDel", getLoaDel())
            .toString();
    }
}
